package com.hxzy.common.exception;

import com.hxzy.common.enums.AckCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TzxmException extends RuntimeException{
    private AckCode ackCode;

    public TzxmException() {

    }

    public TzxmException(String message) {
        super(message);
    }

    public TzxmException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * 自定义构造函数
     * @param ackCode
     */
    public TzxmException(AckCode ackCode){
        this(ackCode.getMsg());
        this.ackCode=ackCode;
    }
}
